package com.wanpinghui.wphlibrary.model.message.bean;

import com.google.gson.Gson;

/**
 * Created by xiongning on 17-12-10.
 */

public class MessagesExt {

    private String file_path;

    private long file_len;

    private String file_name;

    private String file_type;

    public String getFile_path() {
        return file_path;
    }

    public void setFile_path(String file_path) {
        this.file_path = file_path;
    }

    public long getFile_len() {
        return file_len;
    }

    public void setFile_len(long file_len) {
        this.file_len = file_len;
    }

    public String getFile_name() {
        return file_name;
    }

    public void setFile_name(String file_name) {
        this.file_name = file_name;
    }

    public String getFile_type() {
        return file_type;
    }

    public void setFile_type(String file_type) {
        this.file_type = file_type;
    }

    public String getExt(){
        return  new Gson().toJson(this);
    }

    public static MessagesExt getMessagesExt(String ext){
        return new Gson().fromJson(ext,MessagesExt.class);
    }
}
